<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/Public/Assets/Hui/lib/html5.js"></script>
<script type="text/javascript" src="/Public/Assets/Hui/lib/respond.min.js"></script>
<script type="text/javascript" src="/Public/Assets/Hui/lib/PIE_IE678.js"></script>
<![endif]-->
<link href="/Public/Assets/Hui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/Public/Assets/Hui/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="/Public/Assets/Hui/lib/validator/jquery.validator.css" rel="stylesheet" type="text/css" />
<link href="/Public/Assets/Hui/lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
<link href="/Public/Assets/Miniweb/lib/datepicker/dist/datepicker.min.css" rel="stylesheet" type="text/css" />
<link href="/Public/Assets/Hui/css/pagecss.css?v=1.0.0" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/Public/Assets/Hui/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
<link rel="stylesheet" type="text/css" href="/Public/Assets/Miniweb/lib/treeTable/treeTable.css" />
<link href="/Public/Assets/Hui/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="/Public/Assets/Hui/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>应用私有用户-用户管理-Administator管理后台</title>


</head>
<body>

	<nav class="breadcrumb">
		<i class="Hui-iconfont"></i>
		 首页 <span class="c-gray en">&gt;</span>
		 用户管理 <span class="c-gray en">&gt;</span>  
		 应用私有用户
		<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a>
	</nav>
	
	<div class="pd-20">
		<div class="text-c"> 
			<form action="/users/adminsadmin/mlist" method="get">
			<span class="select-box inline">
			<?php $searchtypes = array( 'uid'=>'用户ID', 'username'=>'用户名', 'mobile'=>'手机号', 'email'=>'邮箱', 'nickname'=>'昵称' ); ?>
			<select name="searchtype" class="select">
				<?php if(is_array($searchtypes)): foreach($searchtypes as $key=>$vo): ?><option value="<?php echo ($key); ?>" <?php if(($_GET['searchtype']) == $key): ?>selected<?php endif; ?>><?php echo ($vo); ?></option><?php endforeach; endif; ?>
			</select>
			</span> 日期范围：
			<input type="text" name="start_time" value="<?php echo ($_GET['start_time']); ?>" class="input-text mini-time" style="width:120px;">
			-
			<input type="text" name="end_time" value="<?php echo ($_GET['end_time']); ?>" class="input-text mini-time" style="width:120px;">
			<input type="text" name="keywords" value="<?php echo ($_GET['keywords']); ?>" id="" placeholder="关键词" style="width:250px" class="input-text">
			<button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont"></i> 搜索</button>
			</form>
		</div>
		<div class="cl pd-5 bg-1 bk-gray mt-20"> 
			<span class="l"> 
				<a href="javascript:;" class="btn btn-danger radius ajax-post confirm" target-form="mini-form" data-msg="确定批量删除？" data-url="/users/adminsadmin/del.html"><i class="Hui-iconfont"></i> 批量删除</a> 
			</span> 
		</div>
		<?php $map['role'] = array(array('notlike','%|ROLE_ADMIN|%'),array('notlike','%|ROLE_SUPER_ADMIN|%'),'AND'); $result = _get_list_data('/users/adminsadmin/mlist/',$_GET,$map,D('Users')); ?>
		<form class="mini-form">
		<table class="table table-border table-bordered table-hover table-bg mini-sort">
			<thead>
				<tr>
					<th scope="col" colspan="12">应用管理</th>
				</tr>
				<tr class="text-c">
					<th width="25"><input type="checkbox" value="" name=""></th>
					<th width="40">ID</th>
					<th>用户名</th>
					<th>手机</th>
					<th>邮箱</th>				
					<th>昵称</th>
					<th>头像</th>
					<th>来源</th>
					<th>注册时间</th>
					<th>状态</th>
					<th width="70">操作</th>
				</tr>
			</thead>
			<tbody>
				<?php if(is_array($result['data']['list'])): foreach($result['data']['list'] as $key=>$vo): ?><tr class="text-c">
					<td><input type="checkbox" value="<?php echo ($vo["uid"]); ?>" name="ids[]"></td>
					<td><?php echo replace_query_str($_GET['keywords'],$vo['uid']);?></td>
					<td><?php echo replace_query_str($_GET['keywords'],$vo['username']);?></td>
					<td><?php echo replace_query_str($_GET['keywords'],$vo['mobile']);?></td>
					<td><?php echo replace_query_str($_GET['keywords'],$vo['email']);?></td>
					<td><?php echo replace_query_str($_GET['keywords'],$vo['nickname']);?></td>
					<td><img src="<?php echo ((isset($vo['headimgurl']) && ($vo['headimgurl'] !== ""))?($vo['headimgurl']):'/Public/Images/default.png'); ?>" width="50" height="50"></td>
					<td>来源</td>
					<td><?php echo ($vo["create_time"]); ?></td>
					<td>
            			<?php if($vo["status"] == 1): ?><span class="c-green">启用</span><?php else: ?><span class="c-red">禁用</span><?php endif; ?>
					</td>
					<td class="f-14">
						<?php if($vo["status"] == 0): ?><a style="text-decoration:none" class="ml-5 ajax-get shuaxin" data-url="<?php echo U('users/adminsadmin/changestatus','id='.$vo['uid'].'&status=1');?>" href="javascript:;" title="启用"><i class="Hui-iconfont"></i></a>
            			<?php else: ?>
            			<a style="text-decoration:none" class="ml-5 ajax-get shuaxin" data-url="<?php echo U('users/adminsadmin/changestatus','id='.$vo['uid'].'&status=0');?>" href="javascript:;" title="禁用"><i class="Hui-iconfont"></i></a><?php endif; ?>
            			<a style="text-decoration:none" class="ml-5" onclick="open_iframe_dialog('<?php echo U('adminsadmin/edit','id='.$vo['uid']);?>','修改用户',['750px','490px'],1)" href="javascript:;" title="编辑"><i class="Hui-iconfont"></i></a>
            			<a style="text-decoration:none" class="ml-5 mini_del" data-url="<?php echo U('users/adminsadmin/del','ids='.$vo['uid']);?>" href="javascript:;" title="删除"><i class="Hui-iconfont"></i></a>
					</td>
				</tr><?php endforeach; endif; ?>
			</tbody>
		</table>
		</form>
		<?php echo ($result['pagetpl']); ?>
	</div>


<script type="text/javascript" src="/Public/Assets/Hui/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/Public/Assets/Hui/lib/validator/jquery.validator.js"></script> 
<script type="text/javascript" src="/Public/Assets/Hui/lib/validator/local/zh_CN.js"></script> 
<script type="text/javascript" src="/Public/Sea/modules/layer/2.1/layer/layer.js"></script>
<script type="text/javascript" src="/Public/Assets/Miniweb/lib/datepicker/dist/datepicker.min.js"></script>
<script type="text/javascript" src="/Public/Assets/Miniweb/lib/datepicker/i18n/datepicker.zh-CN.js"></script>
<script type="text/javascript" src="/Public/Assets/Hui/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/Public/Assets/Hui/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script> 
<script type="text/javascript" src="/Public/Assets/Miniweb/lib/treeTable/treeTable.js"></script>
<script type="text/javascript" src="/Public/Assets/Hui/js/H-ui.js"></script> 
<script type="text/javascript" src="/Public/Assets/Hui/js/H-ui.admin.js"></script> 
<script type="text/javascript" src="/Public/Assets/Hui/lib/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="/Public/Assets/Miniweb/mini-admin.js"></script> 



<script>
$('#changeG').change(function(){
	window.location.href="/admin/Users/app/appid/"+$('#changeG').val();
});
$(function(){
	$('.mini-time').datepicker();
});
</script>

</body>
</html>